﻿using Extension.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Extension.Ext
{
    public partial class TechnoTypeExt
    {
        public bool isCustomFlagLoaded = false;

        public bool IsHero = false;

        public bool IsEpicUnit = false;

        public bool IsHarvester = false;

        public bool CanMk2Update = false;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="reader"></param>
        /// <param name="section"></param>
        private void ReadCustomFlagData(INIReader reader, string section)
        {
            if (!isCustomFlagLoaded)
            {
                isCustomFlagLoaded = true;

                reader.ReadNormal(section, "IsHero", ref IsHero);

                reader.ReadNormal(section, "IsEpicUnit", ref IsEpicUnit);

                reader.ReadNormal(section, "Harvester", ref IsHarvester);

                reader.ReadNormal(section, "CanMk2Update", ref CanMk2Update);
            }

        }
    }
}
